/*
 * QCalEventList.h
 *
 *  Created on: Aug 30, 2010
 *      Author: deroy2
 */

#ifndef QCALEVENTLIST_H_
#define QCALEVENTLIST_H_
#include <QListWidgetItem>
#include <QVBoxLayout>
#include <QListWidget>
#include <QStackedWidget>

#include "eventdetails.h"
class QCalEventList : public QWidget
    {
    Q_OBJECT

    public:
    QCalEventList(QStackedWidget* stackedWidget,QVector<eventDetail>& dayEvents,QWidget *parent = 0);
        ~QCalEventList();
    
    public:
      //  QMenuBar* MenuBar() const;
        void NxtPage(eventDetail);
    public slots:
		void PrevPage();
    private:
     //   void createMenus();
    
    /*public slots:
        void hello();
        void back();*/
        
    public slots:
		void index(const QModelIndex &);
    
    private:
        QAction*            menuAction;
       QListWidgetItem *lst;
        QVBoxLayout *layout;
        QListWidget *listWidget;
        QVector<QString> titlArr;
        QVector<QString> contentArr;
        QVector<QString> whereArr;
        QVector<QString> whenEndArr;
        QVector<QString> whenStartArr;
        //QVector<QListWidgetItem*> itemArr;
        QVector<eventDetail> eventDetails;
        QStackedWidget* stackedWidget;
      
//        QAction*            menuAction2;
      /*  uploader* upldr;
		SAXHandler* handler;	
		QTreeView*  m_tree;
		QXmlSimpleReader m_reader;*/
		
    }; 


#endif /* QCALEVENTLIST_H_ */
